package com.feather.tenia.oracle;

import java.sql.CallableStatement;
import java.sql.SQLException;

import com.feather.common.data.DataSet;
import com.feather.tenia.adapter.ProcedureAdapter;
import com.feather.tenia.ProcedureMeta;
import com.feather.tenia.Tenia;

/**
 * @author flogyin
 */
public class OracleProcedure extends ProcedureAdapter {
	public OracleProcedure(Tenia dbTenia, ProcedureMeta meta) {
		super(dbTenia, meta);
	}

	@Override
	protected long[] execute(CallableStatement statement, DataSet dataSet) throws SQLException {
		long currentMs = System.currentTimeMillis();
		statement.execute();
		return new long[] { System.currentTimeMillis() - currentMs, 0 };
	}
}
